package croe.jdbc;

import croe.jdbc.dao.Dao;
import org.junit.Test;

import java.util.List;

/**
 * User: zengzhili
 * Date: 14-8-1
 * Time: 上午10:21
 */
public class Demo {

    @Test
    public void test1(){

//        DataSource dataSource = (DataSource) AppContextSupport.getAppContext().getBean("dataSource");
//        System.out.print(dataSource);

       List<UserOtp> userOtp = Dao.listBySql(UserOtp.class,"com.netvour.dao.test","3423686036");
        System.out.println(userOtp);

    }
}
